#pragma once
#include <map>
#include <string>
#include "Node.h"
#include "Circuit.h"

using namespace std;
class factory
{
private:
	static void assign( const char*, Node* );

public:
	static Node* create(string component);

private:
	typedef std::map<std::string,Node*> NodeMap;

private:
	static NodeMap	&getMap();

	friend class Node;
};

